﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000A4 RID: 164
	internal class InvalidInt32 : IInt32Decoder
	{
		// Token: 0x0600029D RID: 669 RVA: 0x0000B7AC File Offset: 0x00009BAC
		private InvalidInt32()
		{
		}

		// Token: 0x0600029E RID: 670 RVA: 0x0000B7B4 File Offset: 0x00009BB4
		public int Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000C6 RID: 198
		internal static readonly IInt32Decoder Instance = new InvalidInt32();
	}
}
